﻿using MvvmCross.Core.ViewModels;

namespace Sidvall.UI.Navigation
{
	public class HistoryItem
	{
		#region RegionItems

		private HistoryRegionItemCollection _RegionItems;
		public HistoryRegionItemCollection RegionItems
		{
			get
			{
				if (_RegionItems == null)
					_RegionItems = new HistoryRegionItemCollection();
				return _RegionItems;
			}
		}

		#endregion

		#region AddRegionItem

		public bool AddRegionItem(HistoryRegionItem item)
		{
			return this.RegionItems.AddItem(item);
		}

		#endregion
		#region GetRegionNames

		public string[] GetRegionNames()
		{
			return this.RegionItems.GetRegionNames();
		}

		#endregion
		#region GetViewModelRequests

		public MvxViewModelRequest[] GetViewModelRequests(string[] regionNames)
		{
			return this.RegionItems.GetViewModelRequests(regionNames);
		}

		#endregion
	}
}
